package org.jsola.contract.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.contract.example.PartySignExample.E_ACCOUNT_ID;
import static org.jsola.contract.example.PartySignExample.E_CONTRACT_ID;
import static org.jsola.contract.example.PartySignExample.E_SEAL_ID;
import static org.jsola.contract.example.PartySignExample.E_SEAL_POSITION_ID;
import static org.jsola.contract.example.PartySignExample.E_SIGN_DATE;
import static org.jsola.contract.example.PartySignExample.E_SIGN_DETAIL_URL;
import static org.jsola.contract.example.PartySignExample.E_SIGN_SERVICE_ID;
import static org.jsola.contract.example.PartySignExample.E_STATUS;
import static org.jsola.contract.example.PartySignExample.E_SUBJECT_ID;
import static org.jsola.contract.example.PartySignExample.M_ACCOUNT_ID_MAX;
import static org.jsola.contract.example.PartySignExample.M_ACCOUNT_ID_NOT_NULL;
import static org.jsola.contract.example.PartySignExample.M_CONTRACT_ID_NOT_NULL;
import static org.jsola.contract.example.PartySignExample.M_SIGN_DETAIL_URL_MAX;
import static org.jsola.contract.example.PartySignExample.M_SIGN_SERVICE_ID_MAX;
import static org.jsola.contract.example.PartySignExample.M_SUBJECT_ID_MAX;
import static org.jsola.contract.example.PartySignExample.N_ACCOUNT_ID;
import static org.jsola.contract.example.PartySignExample.N_CONTRACT_ID;
import static org.jsola.contract.example.PartySignExample.N_SEAL_ID;
import static org.jsola.contract.example.PartySignExample.N_SEAL_POSITION_ID;
import static org.jsola.contract.example.PartySignExample.N_SIGN_DATE;
import static org.jsola.contract.example.PartySignExample.N_SIGN_DETAIL_URL;
import static org.jsola.contract.example.PartySignExample.N_SIGN_SERVICE_ID;
import static org.jsola.contract.example.PartySignExample.N_STATUS;
import static org.jsola.contract.example.PartySignExample.N_SUBJECT_ID;

/**
 * 合同签署方签署记录
 *
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【合同签署方签署记录】的参数")
@Data
public class PartySignAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_SIGN_DETAIL_URL, example = E_SIGN_DETAIL_URL)
    @Length(max = 255, message = M_SIGN_DETAIL_URL_MAX)
    private String signDetailUrl;

    @ApiModelProperty(notes = N_SIGN_SERVICE_ID, example = E_SIGN_SERVICE_ID)
    @Length(max = 64, message = M_SIGN_SERVICE_ID_MAX)
    private String signServiceId;

    @ApiModelProperty(notes = N_ACCOUNT_ID, example = E_ACCOUNT_ID, required = true)
    @NotNull(message = M_ACCOUNT_ID_NOT_NULL)
    @Length(max = 40, message = M_ACCOUNT_ID_MAX)
    private String accountId;

    @ApiModelProperty(notes = N_CONTRACT_ID, example = E_CONTRACT_ID, required = true)
    @NotNull(message = M_CONTRACT_ID_NOT_NULL)
    private Long contractId;

    @ApiModelProperty(notes = N_SEAL_ID, example = E_SEAL_ID)
    private Long sealId;

    @ApiModelProperty(notes = N_SEAL_POSITION_ID, example = E_SEAL_POSITION_ID)
    private Long sealPositionId;

    @ApiModelProperty(notes = N_SUBJECT_ID, example = E_SUBJECT_ID)
    @Length(max = 32, message = M_SUBJECT_ID_MAX)
    private String subjectId;

    @ApiModelProperty(notes = N_SIGN_DATE, example = E_SIGN_DATE)
    private Date signDate;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;


}

